package com.yishun.springboot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yishun.springboot.service.TbAuthoritylevelService;

@RestController
@RequestMapping("/Authoritylevel")
public class TbAuthoritylevelController {

	@Autowired
	TbAuthoritylevelService tbAuthoritylevelService;

	// 查询所有权限等级
	@RequestMapping("/getTbAuthoritylevelAll")
	public String getTbAuthoritylevelAll() {

		return tbAuthoritylevelService.getTbAuthoritylevelAll().toJSONString();

	}
}
